from django.conf.urls import url
from django.contrib import admin
from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token

from . import views
from . import build_detail

urlpatterns = [
    # 1.用户名注册查询
    url(r'^categories/(?P<pk>\d+)/$', views.CategoryView.as_view()),
    url(r'^categories/(?P<pk>\d+)/skus/$', views.GoodsListView.as_view()),
    url(r'^goods/$', build_detail.generate_detail_html),

]